Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

subscriber: add space when recording new values on an existing span #659

Merged
merged 2 commits into from
Apr 2, 2020

Conversation

bnjjj
Copy link
Contributor

@bnjjj bnjjj commented Apr 2, 2020

Motivation

Fix the issue #627

Solution

If the remaining values is not empty I just append a whitespace to format

BTW than you all for your work and tag Good first issue ❤️ you build a real opensource project with a real community.

Copy link
Member

@hawkw hawkw left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the fix @bnjjj! This bug was starting to bother me :)

BTW than you all for your work and tag Good first issue ❤️ you build a real opensource project with a real community.

That's great to hear! We're trying our best, but do let me know if there's any room for improvement.

@hawkw hawkw changed the title add space between multiple values for same key in a span for FmtSubscriber #627 subscriber: add space when recording new values on an existing span Apr 2, 2020
@hawkw hawkw merged commit ee675a2 into tokio-rs:master Apr 2, 2020
hawkw added a commit that referenced this pull request Apr 6, 2020
# 0.2.4 (April 6, 2020)

This release includes several API ergonomics improvements, including
shorthand constructors for many types, and an extension trait for
initializing subscribers using method-chaining style. Additionally,
several bugs in less commonly used `fmt` APIs were fixed.

### Added

- **fmt**: Shorthand free functions for constructing most types in `fmt`
  (including `tracing_subscriber::fmt()` to return a
  `SubscriberBuilder`, `tracing_subscriber::fmt::layer()` to return a
  format `Layer`, etc) (#660)
- **registry**: Shorthand free function `tracing_subscriber::registry()`
  to construct a new registry (#660)
- Added `SubscriberInitExt` extension trait for more ergonomic
  subscriber initialization (#660)
  
### Changed

- **fmt**: Moved `LayerBuilder` methods to `Layer` (#655)

### Deprecated

- **fmt**: `LayerBuilder`, as `Layer` now implements all builder methods
  (#655)
  
### Fixed

- **fmt**: Fixed `Compact` formatter not omitting levels with
  `with_level(false)` (#657)
- **fmt**: Fixed `fmt::Layer` duplicating the fields for a new span if
  another layer has already formatted its fields (#634)
- **fmt**: Added missing space when using `record` to add new fields to
  a span that already has fields (#659)
- Updated outdated documentation (#647)


Signed-off-by: Eliza Weisman <eliza@buoyant.io>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants